<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglibs.jsp" %>
<html>
<head>
    <title>目录修改页面</title>
    <link rel="stylesheet" href="assets/admin/css/pintuer.css">
    <link rel="stylesheet" href="assets/admin/css/admin.css">
    <script type="text/javascript" src="assets/js/myjs/jquery-3.4.1.js"></script>
    <script type="text/javascript" src="assets/admin/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel " style="margin-left: auto; margin-right: auto ;width: 40%;margin-top: 0px">
    <div class="panel-head" id="add">
        <strong><span class="icon-plus-square-o">新增商品</span> </strong>
    </div>
    <div class="body-content">
        <form action="/good/edit" class="form-x " method="post">

            <input type="hidden" name="rowId" value="${obj.rowId}">
            <input type="hidden" name="activeFlag" value="${obj.activeFlag}">

            <div class="form-group"></div>
            <div class="label"><label>商品父目录：</label></div>
            <div class="field">
                <input type="text" class="input w100" name="dirId"
                       value="${obj.dirId}">
            </div>
            <div class="form-group"></div>
            <div class="label"><label>商品编号：</label></div>
            <div class="field">
                <input type="text" class="input w100" name="goodId"
                       obj-validate="required: 请输入商品编号"
                       value="${obj.goodId}">
            </div>


            <div class="form-group"></div>
            <div class="label"><label>产品名称：</label></div>
            <div class="field">
                <input type="text" class="input w100" name="goodName"
                       obj-validate="required: 请输入商品编号"
                       value="${obj.goodName}">
            </div>


            <div class="form-group"></div>
            <div class="label"><label>上传图片：</label></div>
            <div class="field">
                <input type="text" class="input w100" name="goodImage"
                       obj-validate="required: 请上传图片"
                       value="${obj.goodImage}">
            </div>
            <div class="form-group"></div>
            <div class="label"><label>商品价格：</label></div>
            <div class="field">
                <input type="text" class="input w100" name="goodPrice"
                       obj-validate="required: 请输入商品价格"
                       value="${obj.goodPrice}">
            </div>


            <div class="form-group"></div>
            <div class="label"><label>商品库存：</label></div>
            <div class="field">
                <input type="text" class="input w100" name="goodInventoryNumber"
                       obj-validate="required: 请输入库存数"
                       value="${obj.goodInventoryNumber}">
            </div>

            <div class="form-group"></div>
            <div class="label"><label>是否上架：</label></div>
            <div class="field">
                <input type="text" class="input w100" name="goodUpdownState"
                       obj-validate="required: 请添加是否上架"
                       value="${obj.goodUpdownState}">
            </div>

            <div class="form-group"></div>
            <div class="label"><label>商品描述：</label></div>
            <div class="field">
                <input type="text" class="input w100" name="goodInfo"
                       obj-validate="required: 请输入商品描述"
                       value="${obj.goodInfo}">
            </div>



            <div class="form-group">
                <div class="label"></div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/layui/2.5.7/layui.js"></script>
<script>
    function changeSearch() {

        $('#editform').submit();
    }

    layui.use(['layer', 'form'], function () {
        var layer = layui.layer
            , form = layui.form;
    });

</script>
</html>
